﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SmartSiteManagementSystem.Models.ProjectManage
{
    /// <summary>
    /// 
    /// </summary>
    [Serializable]
    public class ProjectInfo
    {
        /// <summary>
        /// 项目ID 自增ID 
        /// </summary>
        private int _projectId;

        public int ProjectId
        {
            get { return _projectId; }
            set { _projectId = value; }

        }


        /// <summary>
        /// 项目名字
        /// </summary>
        private string _projectName;

        public string ProjectName
        {
            get { return _projectName; }
            set { _projectName = value; }

        }


        /// <summary>
        /// 项目类型 保留字段 暂时未使用
        /// </summary>
        private int _projectType;

        public int ProjectType
        {
            get { return _projectType; }
            set { _projectType = value; }

        }

        private DateTime _startTime;

        /// <summary>
        /// 项目开始时间
        /// </summary>
        public DateTime StartTime
        {
            set { _startTime = value; }
            get { return _startTime; }
        }


        private DateTime _endTime;

        /// <summary>
        /// 项目结束时间
        /// </summary>
        public DateTime EndTime
        {
            set { _endTime = value; }
            get { return _endTime; }
        }



        /// <summary>
        /// 是否删除 逻辑删  1 删除 0 
        /// </summary>
        private bool _isDelete;

        public bool IsDelete
        {
            get { return _isDelete; }
            set { _isDelete = value; }

        }

        private DateTime _createtime;

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime
        {
            set { _createtime = value; }
            get { return _createtime; }
        }

        private DateTime _updatetime;
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdateTime
        {
            set { _updatetime = value; }
            get { return _updatetime; }
        }


        #region
        public string StartTimeStr
        {
            get { return this.StartTime.ToString("yyyy-MM-dd HH:mm:ss"); }

        }

        public string EndTimeStr
        {
            get { return this.EndTime.ToString("yyyy-MM-dd HH:mm:ss"); }

        }


        public string CreateTimeStr
        {
            get { return this.CreateTime.ToString("yyyy-MM-dd HH:mm:ss"); }

        }
        #endregion
    }
}
